/*
 * serverIntArrayMV.h
 *
 *  Created on: Jun 30, 2011
 *      Author: peckb1
 */

#ifndef SERVERINTARRAYMV_H_
#define SERVERINTARRAYMV_H_

#include <stdio.h>
#include <string.h>

class ServerIntArrayMV {
public:
private:
    int* _valueArray;
    char* _name;
    int _machineId;
    int _size;
    int _timesCreated;

public:
    ServerIntArrayMV(char* name, int valueArraySize, int machineId);
    ~ServerIntArrayMV();

    int   GetSize();
    char* GetName();
    int   GetMachineId();
    int   GetValue(int index);
    void  SetValue(int index, int newValue);

    void  addUser();
    void  removeUser();
    int   getActiveUsers();
};

#endif /* SERVERINTMV_H_ */
